package com.markerhub.service.impl;

import com.markerhub.entity.CourseLearnUnit;
import com.markerhub.mapper.CourseLearnUnitMapper;
import com.markerhub.service.CourseLearnUnitService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CourseLearnUnitServiceImpl extends ServiceImpl<CourseLearnUnitMapper, CourseLearnUnit> implements CourseLearnUnitService {

    @Autowired
    private CourseLearnUnitMapper unitMapper;
@Override
    public List<Map<String, Object>> getStudentUnits(Integer studentId) {
        return unitMapper.selectStudentUnits(studentId);
    }
}
